import React from 'react'
import { createRoot } from 'react-dom/client'

const isLogin = false
const render = function () {
  if (!isLogin) {
    return <div>数据加载中...</div>
  } else {
    return (
      <div>
        <div>加载完成</div>
      </div>
    )
  }
}
// ReactDOM.render(element, document.querySelector('#root'))
createRoot(document.querySelector('#root')).render(render())
